/// Author: QP
/// Version: 1.0
/// Date:2021/07/01
/// 互联互通文档配置类
/// 用于配置和管理53个文档所需的章节
/// 通过Cardinality属性定义章节的出现次数，包括：
/// 1. 不出现：0..0
/// 2. 必要且出现一次: 1..1
/// 3. 必要且出现多次：1..*
/// 4. 不必要且出现一次：0..1
/// 5. 不必要且出现多次：0..*
Class WS.DOC.DocumentConfig Extends (%Persistent, %XML.Adaptor)
{

/// 文档类型
Property DocumentType As %String(DISPLAYLIST = ",病历概要,门(急)诊病历,急诊留观病历,西药处方,中药处方,检查报告,检验报告,治疗记录,一般手术记录,麻醉术前访视记录,麻醉记录,麻醉术后访视记录,输血记录,待产记录,阴道分娩记录,剖宫产记录,一般护理记录,病重(病危)护理记录,手术护理记录,生命体征测量记录,出入量记录,高值耗材使用记录,入院评估,护理计划,出院评估与指导,手术知情同意书,麻醉知情同意书,输血治疗同意书,特殊检查与特殊治疗同意书,病危(重)通知书,其它知情同意书,住院病案首页,中医住院病案首页,入院记录,24小时内入出院记录,25小时内入院死亡记录,住院病程记录 首次病程记录,住院病程记录 日常病程记录,住院病程记录 上级医师查房记录,住院病程记录 疑难病例讨论记录,住院病程记录 交接班记录,住院病程记录 转科记录,住院病程记录 阶段小结,住院病程记录 抢救记录,住院病程记录 会诊记录,住院病程记录 术前小结,住院病程记录 术前讨论,住院病程记录 术后首次病程记录,住院病程记录 出院记录,住院病程记录 死亡记录,住院病程记录 死亡病例讨论记录,住院医嘱,出院小结", VALUELIST = ",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53");

/// 章节名称
Property DocumentSection As %String(VALUELIST = ",病历摘要章节,产后处置章节,产前检查章节,出院诊断章节,处置计划章节,费用章节,分娩评估章节,风险章节,辅助检查章节,高值耗材章节,社会史/个人史章节,过敏史章节,行政管理章节,护理标志章节,护理操作章节,护理隔离章节,护理观察章节,护理记录章节,会诊意见章节,会诊原因章节,既往史章节,家族史章节,检查报告章节,检验报告章节,健康评估章节,健康指导章节,麻醉章节,皮肤章节,其他处置章节,其他相关信息章节,器械物品核对章节,抢救记录章节,入院信息章节,入院诊断章节,生活方式章节,生命体征章节,尸检意见章节,失血章节,实验室检查章节,手术操作章节,手术过程描述章节,手术记录章节,手术评估记录标志章节,输血章节,输液章节,术后交接章节,术后去向章节,术后诊断章节,术前诊断章节,术前总结章节,死亡原因章节,四肢章节,讨论内容章节,讨论总结章节,体格检查章节,卫生事件章节,现病史章节,新生儿章节,一般状况检查章节,医嘱章节,意见章节,阴道分娩章节,引流章节,用药管理章节,用药章节,预防接种史章节,月经史章节,诊断记录章节,症状章节,知情同意章节,治疗计划章节,主诉章节,主要健康问题章节,住院过程章节,住院史章节,注意事项章节,转科记录章节");

/// 基数
Property Cardinality As %String(VALUELIST = ",0..0,1..1,1..*,0..1,0..*");

ClassMethod Init()
{
    D ..%KillExtent()
    Set DocConfig(1)=$lb(1,"实验室检查章节","0..1")
    Set DocConfig(2)=$lb(1,"既往史章节","0..1")
    Set DocConfig(3)=$lb(1,"输血章节","0..1")
    Set DocConfig(4)=$lb(1,"过敏史章节","0..1")
    Set DocConfig(5)=$lb(1,"预防接种史章节","0..1")
    Set DocConfig(6)=$lb(1,"社会史/个人史章节","0..1")
    Set DocConfig(7)=$lb(1,"月经史章节","0..1")
    Set DocConfig(8)=$lb(1,"家族史章节","0..1")
    Set DocConfig(9)=$lb(1,"卫生事件章节","1..1")
    Set DocConfig(10)=$lb(2,"过敏史章节","0..1")
    Set DocConfig(11)=$lb(2,"主诉章节","1..1")
    Set DocConfig(12)=$lb(2,"现病史章节","1..1")
    Set DocConfig(13)=$lb(2,"既往史章节","0..1")
    Set DocConfig(14)=$lb(2,"体格检查章节","0..1")
    Set DocConfig(15)=$lb(2,"实验室检查章节","0..1")
    Set DocConfig(16)=$lb(2,"诊断记录章节","1..1")
    Set DocConfig(17)=$lb(2,"治疗计划章节","0..1")
    Set DocConfig(18)=$lb(2,"医嘱章节","0..1")
    Set DocConfig(19)=$lb(3,"过敏史章节","1..1")
    Set DocConfig(20)=$lb(3,"主诉章节","1..1")
    Set DocConfig(21)=$lb(3,"现病史章节","1..1")
    Set DocConfig(22)=$lb(3,"既往史章节","1..1")
    Set DocConfig(23)=$lb(3,"体格检查章节","1..1")
    Set DocConfig(24)=$lb(3,"实验室检查章节","1..1")
    Set DocConfig(25)=$lb(3,"诊断记录章节","1..1")
    Set DocConfig(26)=$lb(3,"治疗计划章节","0..1")
    Set DocConfig(27)=$lb(3,"医嘱章节","1..1")
    Set DocConfig(28)=$lb(3,"手术操作章节","0..1")
    Set DocConfig(29)=$lb(3,"抢救记录章节","0..1")
    Set DocConfig(30)=$lb(3,"住院过程章节","1..1")
    Set DocConfig(31)=$lb(3,"其他相关信息章节","1..1")
    Set DocConfig(32)=$lb(4,"诊断记录章节","1..1")
    Set DocConfig(33)=$lb(4,"用药章节","1..1")
    Set DocConfig(34)=$lb(4,"费用章节","1..1")
    Set DocConfig(35)=$lb(5,"诊断记录章节","1..1")
    Set DocConfig(36)=$lb(5,"用药章节","1..1")
    Set DocConfig(37)=$lb(5,"费用章节","1..1")
    Set DocConfig(38)=$lb(5,"治疗计划章节","0..1")
    Set DocConfig(39)=$lb(6,"诊断记录章节","1..1")
    Set DocConfig(40)=$lb(6,"主诉章节","1..1")
    Set DocConfig(41)=$lb(6,"症状章节","1..1")
    Set DocConfig(42)=$lb(6,"手术操作章节","0..1")
    Set DocConfig(43)=$lb(6,"体格检查章节","1..1")
    Set DocConfig(44)=$lb(6,"其他处置章节","0..1")
    Set DocConfig(45)=$lb(6,"检查报告章节","1..1")
    Set DocConfig(46)=$lb(7,"诊断记录章节","1..1")
    Set DocConfig(47)=$lb(7,"实验室检查章节","1..1")
    Set DocConfig(48)=$lb(7,"检验报告章节","1..1")
    Set DocConfig(49)=$lb(8,"既往史章节","0..1")
    Set DocConfig(50)=$lb(8,"生命体征章节","0..1")
    Set DocConfig(51)=$lb(8,"入院诊断章节","1..1")
    Set DocConfig(52)=$lb(8,"治疗计划章节","0..1")
    Set DocConfig(53)=$lb(8,"手术操作章节","0..1")
    Set DocConfig(54)=$lb(8,"用药管理章节","0..1")
    Set DocConfig(55)=$lb(9,"既往史章节","0..1")
    Set DocConfig(56)=$lb(9,"术前诊断章节","1..1")
    Set DocConfig(57)=$lb(9,"手术操作章节","1..1")
    Set DocConfig(59)=$lb(9,"失血章节","0..1")
    Set DocConfig(60)=$lb(9,"输血章节","0..1")
    Set DocConfig(61)=$lb(9,"用药章节","0..1")
    Set DocConfig(62)=$lb(9,"输液章节","0..1")
    Set DocConfig(63)=$lb(9,"术后诊断章节","1..1")
    Set DocConfig(64)=$lb(9,"手术过程描述章节","1..1")
    Set DocConfig(65)=$lb(9,"引流章节","0..1")
    Set DocConfig(66)=$lb(10,"术前诊断章节","1..1")
    Set DocConfig(67)=$lb(10,"现病史章节","1..1")
    //修正:文档10《麻醉术前访视记录》是过敏史，而不是既往史
    //Set DocConfig(68)=$lb(10,"既往史章节","0..1")
    Set DocConfig(68)=$lb(10,"过敏史章节","0..1")
    Set DocConfig(69)=$lb(10,"体格检查章节","0..1")
    Set DocConfig(70)=$lb(10,"实验室检查章节","1..1")
    Set DocConfig(71)=$lb(10,"治疗计划章节","0..1")
    Set DocConfig(72)=$lb(11,"实验室检查章节","1..1")
    Set DocConfig(73)=$lb(11,"生命体征章节","1..1")
    Set DocConfig(74)=$lb(11,"用药管理章节","1..1")
    Set DocConfig(75)=$lb(11,"术前诊断章节","1..1")
    Set DocConfig(76)=$lb(11,"术后诊断章节","1..1")
    Set DocConfig(77)=$lb(11,"手术操作章节","1..1")
    Set DocConfig(78)=$lb(11,"输液章节","0..1")
    Set DocConfig(79)=$lb(11,"输血章节","0..1")
    Set DocConfig(80)=$lb(11,"麻醉章节","1..1")
    Set DocConfig(81)=$lb(11,"主要健康问题章节","1..1")
    Set DocConfig(82)=$lb(11,"失血章节","0..1")
    Set DocConfig(83)=$lb(11,"术后去向章节","1..1")
    Set DocConfig(84)=$lb(12,"生命体征章节","1..1")
    Set DocConfig(85)=$lb(12,"一般状况检查章节","1..1")
    Set DocConfig(86)=$lb(12,"实验室检查章节","1..1")
    Set DocConfig(87)=$lb(12,"术前诊断章节","1..1")
    Set DocConfig(88)=$lb(12,"术后诊断章节","1..1")
    Set DocConfig(89)=$lb(12,"手术操作章节","1..1")
    Set DocConfig(90)=$lb(12,"麻醉章节","1..1")
    Set DocConfig(91)=$lb(12,"主要健康问题章节","1..1")
    Set DocConfig(92)=$lb(13,"实验室检查章节","1..1")
    Set DocConfig(93)=$lb(13,"主要健康问题章节","1..1")
    Set DocConfig(94)=$lb(13,"输血章节","1..1")
    Set DocConfig(95)=$lb(14,"主要健康问题章节","1..1")
    Set DocConfig(96)=$lb(14,"生命体征章节","1..1")
    Set DocConfig(97)=$lb(14,"既往史章节","0..1")
    Set DocConfig(98)=$lb(14,"产前检查章节","1..1")
    Set DocConfig(99)=$lb(14,"治疗计划章节","1..1")
    Set DocConfig(100)=$lb(15,"既往史章节","0..1")
    Set DocConfig(101)=$lb(15,"阴道分娩章节","1..1")
    Set DocConfig(102)=$lb(15,"产后处置章节","1..1")
    Set DocConfig(103)=$lb(15,"新生儿章节","1..1")
    Set DocConfig(104)=$lb(15,"分娩评估章节","1..1")
    Set DocConfig(105)=$lb(16,"手术操作章节","1..1")
    Set DocConfig(106)=$lb(16,"产后处置章节","1..1")
    Set DocConfig(107)=$lb(16,"新生儿章节","1..1")
    Set DocConfig(108)=$lb(16,"分娩评估章节","1..1")
    Set DocConfig(109)=$lb(17,"诊断记录章节","1..1")
    Set DocConfig(110)=$lb(17,"过敏史章节","0..1")
    Set DocConfig(111)=$lb(17,"生命体征章节","1..1")
    Set DocConfig(112)=$lb(17,"四肢章节","1..1")
    Set DocConfig(113)=$lb(17,"健康评估章节","1..1")
    Set DocConfig(114)=$lb(17,"健康指导章节","0..1")
    Set DocConfig(115)=$lb(17,"护理记录章节","1..1")
    Set DocConfig(116)=$lb(17,"护理观察章节","0..1")
    Set DocConfig(117)=$lb(17,"护理操作章节","0..1")
    Set DocConfig(118)=$lb(17,"手术评估记录标志章节","0..1")
    Set DocConfig(119)=$lb(17,"护理隔离章节","0..1")
    Set DocConfig(120)=$lb(18,"过敏史章节","0..1")
    Set DocConfig(121)=$lb(18,"诊断记录章节","1..1")
    Set DocConfig(122)=$lb(18,"生命体征章节","1..1")
    Set DocConfig(123)=$lb(18,"健康评估章节","0..1")
    Set DocConfig(124)=$lb(18,"护理记录章节","1..1")
    Set DocConfig(125)=$lb(18,"护理观察章节","0..1")
    Set DocConfig(126)=$lb(18,"护理操作章节","0..1")
    Set DocConfig(127)=$lb(19,"术前诊断章节","1..1")
    Set DocConfig(128)=$lb(19,"生命体征章节","1..1")
    Set DocConfig(129)=$lb(19,"实验室检查章节","0..1")
    Set DocConfig(130)=$lb(19,"皮肤章节","0..1")
    Set DocConfig(131)=$lb(19,"过敏史章节","0..1")
    Set DocConfig(132)=$lb(19,"护理记录章节","0..1")
    Set DocConfig(133)=$lb(19,"护理观察章节","0..1")
    Set DocConfig(134)=$lb(19,"护理操作章节","0..1")
    Set DocConfig(135)=$lb(19,"器械物品核对章节","0..1")
    Set DocConfig(136)=$lb(19,"手术操作章节","1..1")
    Set DocConfig(137)=$lb(19,"术后交接章节","1..1")
    Set DocConfig(138)=$lb(20,"诊断记录章节","1..1")
    Set DocConfig(139)=$lb(20,"生命体征章节","1..1")
    Set DocConfig(140)=$lb(20,"护理观察章节","1..1")
    Set DocConfig(141)=$lb(21,"诊断记录章节","1..1")
    Set DocConfig(142)=$lb(21,"生命体征章节","1..1")
    Set DocConfig(143)=$lb(21,"护理记录章节","1..1")
    Set DocConfig(144)=$lb(21,"护理观察章节","1..1")
    Set DocConfig(145)=$lb(21,"护理操作章节","1..1")
    Set DocConfig(146)=$lb(21,"用药章节","0..1")
    Set DocConfig(147)=$lb(21,"护理标志章节","1..1")
    Set DocConfig(148)=$lb(22,"诊断记录章节","1..1")
    Set DocConfig(149)=$lb(22,"高值耗材章节","1..1")
    Set DocConfig(150)=$lb(23,"入院信息章节","1..1")
    Set DocConfig(151)=$lb(23,"症状章节","1..1")
    Set DocConfig(152)=$lb(23,"生命体征章节","1..1")
    Set DocConfig(153)=$lb(23,"既往史章节","0..1")
    Set DocConfig(154)=$lb(23,"过敏史章节","0..1")
    // 修正C0023 《入院评估》，增加“预防接种史章节”
    Set DocConfig(154.1)=$lb(23,"预防接种史章节","0..1")
    Set DocConfig(155)=$lb(23,"家族史章节","0..1")
    Set DocConfig(156)=$lb(23,"健康评估章节","0..1")
    Set DocConfig(157)=$lb(23,"生活方式章节","1..1")
    Set DocConfig(158)=$lb(23,"入院诊断章节","1..1")
    Set DocConfig(159)=$lb(23,"护理观察章节","1..1")
    Set DocConfig(160)=$lb(24,"主要健康问题章节","1..1")
    Set DocConfig(161)=$lb(24,"护理记录章节","1..1")
    Set DocConfig(162)=$lb(24,"健康指导章节","1..1")
    Set DocConfig(163)=$lb(25,"出院诊断章节","1..1")
    Set DocConfig(164)=$lb(25,"健康指导章节","1..1")
    Set DocConfig(165)=$lb(25,"健康评估章节","1..1")
    Set DocConfig(166)=$lb(26,"术前诊断章节","1..1")
    Set DocConfig(167)=$lb(26,"治疗计划章节","1..1")
    Set DocConfig(168)=$lb(26,"意见章节","1..1")
    Set DocConfig(169)=$lb(26,"风险章节","1..1")
    Set DocConfig(170)=$lb(27,"术前诊断章节","1..1")
    Set DocConfig(171)=$lb(27,"治疗计划章节","1..1")
    Set DocConfig(172)=$lb(27,"意见章节","1..1")
    Set DocConfig(173)=$lb(27,"风险章节","1..1")
    Set DocConfig(174)=$lb(28,"诊断记录章节","1..1")
    Set DocConfig(175)=$lb(28,"输血章节","1..1")
    Set DocConfig(176)=$lb(28,"治疗计划章节","1..1")
    Set DocConfig(177)=$lb(28,"意见章节","1..1")
    Set DocConfig(178)=$lb(28,"风险章节","1..1")
    Set DocConfig(179)=$lb(29,"诊断记录章节","1..1")
    Set DocConfig(180)=$lb(29,"治疗计划章节","1..1")
    Set DocConfig(181)=$lb(29,"意见章节","1..1")
    Set DocConfig(182)=$lb(29,"风险章节","1..1")
    Set DocConfig(183)=$lb(30,"诊断记录章节","1..1")
    Set DocConfig(184)=$lb(30,"知情同意章节","1..1")
    Set DocConfig(185)=$lb(31,"诊断记录章节","1..1")
    Set DocConfig(186)=$lb(31,"知情同意章节","1..1")
    Set DocConfig(187)=$lb(31,"意见章节","1..1")
    Set DocConfig(188)=$lb(32,"生命体征章节","0..1")
    Set DocConfig(189)=$lb(32,"诊断记录章节","1..1")
    Set DocConfig(190)=$lb(32,"主要健康问题章节","1..1")
    Set DocConfig(191)=$lb(32,"转科记录章节","0..1")
    Set DocConfig(192)=$lb(32,"出院诊断章节","1..1")
    Set DocConfig(193)=$lb(32,"过敏史章节","0..1")
    Set DocConfig(194)=$lb(32,"实验室检查章节","1..1")
    Set DocConfig(195)=$lb(32,"手术操作章节","0..1")
    Set DocConfig(196)=$lb(32,"住院史章节","0..1")
    Set DocConfig(197)=$lb(32,"行政管理章节","1..1")
    Set DocConfig(198)=$lb(32,"住院过程章节","1..1")
    Set DocConfig(199)=$lb(32,"治疗计划章节","1..1")
    Set DocConfig(200)=$lb(32,"费用章节","1..1")
    Set DocConfig(201)=$lb(33,"生命体征章节","1..1")
    Set DocConfig(202)=$lb(33,"诊断记录章节","1..1")
    Set DocConfig(203)=$lb(33,"主要健康问题章节","1..1")
    Set DocConfig(204)=$lb(33,"转科记录章节","0..1")
    Set DocConfig(205)=$lb(33,"出院诊断章节","1..1")
    Set DocConfig(206)=$lb(33,"过敏史章节","1..1")
    Set DocConfig(207)=$lb(33,"实验室检查章节","1..1")
    Set DocConfig(208)=$lb(33,"手术操作章节","0..1")
    Set DocConfig(209)=$lb(33,"住院史章节","0..1")
    Set DocConfig(210)=$lb(33,"行政管理章节","1..1")
    Set DocConfig(211)=$lb(33,"住院过程章节","1..1")
    Set DocConfig(212)=$lb(33,"治疗计划章节","0..1")
    Set DocConfig(213)=$lb(33,"费用章节","1..1")
    Set DocConfig(214)=$lb(34,"主诉章节","1..1")
    Set DocConfig(215)=$lb(34,"现病史章节","1..1")
    Set DocConfig(216)=$lb(34,"既往史章节","0..1")
    // 修正：文档34《入院记录》不仅有既往史，也有过敏史
    Set DocConfig(216.1)=$lb(34,"过敏史章节","0..1")
    Set DocConfig(217)=$lb(34,"预防接种史章节","0..1")
    Set DocConfig(218)=$lb(34,"输血章节","1..1")
    Set DocConfig(219)=$lb(34,"社会史/个人史章节","0..1")
    Set DocConfig(220)=$lb(34,"月经史章节","0..1")
    Set DocConfig(221)=$lb(34,"家族史章节","0..1")
    Set DocConfig(222)=$lb(34,"生命体征章节","1..1")
    Set DocConfig(223)=$lb(34,"体格检查章节","1..1")
    Set DocConfig(224)=$lb(34,"辅助检查章节","0..1")
    Set DocConfig(225)=$lb(34,"主要健康问题章节","1..1")
    Set DocConfig(226)=$lb(34,"治疗计划章节","0..1")
    Set DocConfig(227)=$lb(35,"主诉章节","1..1")
    Set DocConfig(228)=$lb(35,"现病史章节","1..1")
    Set DocConfig(229)=$lb(35,"主要健康问题章节","1..1")
    Set DocConfig(230)=$lb(35,"入院诊断章节","1..1")
    Set DocConfig(231)=$lb(35,"治疗计划章节","0..1")
    Set DocConfig(232)=$lb(35,"住院过程章节","1..1")
    Set DocConfig(233)=$lb(35,"出院诊断章节","1..1")
    Set DocConfig(234)=$lb(35,"医嘱章节","0..1")
    Set DocConfig(235)=$lb(36,"主诉章节","1..1")
    Set DocConfig(236)=$lb(36,"主要健康问题章节","1..1")
    Set DocConfig(237)=$lb(36,"入院诊断章节","1..1")
    Set DocConfig(238)=$lb(36,"治疗计划章节","0..1")
    Set DocConfig(239)=$lb(36,"住院过程章节","1..1")
    Set DocConfig(240)=$lb(37,"主诉章节","1..1")
    Set DocConfig(241)=$lb(37,"诊断记录章节","1..1")
    Set DocConfig(242)=$lb(37,"治疗计划章节","0..1")
    Set DocConfig(243)=$lb(38,"主要健康问题章节","1..1")
    Set DocConfig(244)=$lb(38,"诊断记录章节","0..1")
    Set DocConfig(245)=$lb(38,"治疗计划章节","0..1")
    Set DocConfig(246)=$lb(38,"用药章节","0..1")
    Set DocConfig(247)=$lb(38,"医嘱章节","0..1")
    Set DocConfig(248)=$lb(39,"健康评估章节","1..1")
    Set DocConfig(249)=$lb(39,"诊断记录章节","0..1")
    Set DocConfig(250)=$lb(39,"治疗计划章节","0..1")
    Set DocConfig(251)=$lb(39,"用药章节","0..1")
    Set DocConfig(252)=$lb(39,"医嘱章节","0..1")
    Set DocConfig(253)=$lb(40,"健康评估章节","1..1")
    Set DocConfig(254)=$lb(40,"诊断记录章节","0..1")
    Set DocConfig(255)=$lb(40,"治疗计划章节","0..1")
    Set DocConfig(256)=$lb(40,"用药章节","0..1")
    Set DocConfig(257)=$lb(41,"主诉章节","1..1")
    Set DocConfig(258)=$lb(41,"入院诊断章节","1..1")
    Set DocConfig(259)=$lb(41,"诊断记录章节","1..1")
    Set DocConfig(260)=$lb(41,"治疗计划章节","1..1")
    Set DocConfig(261)=$lb(41,"住院过程章节","1..1")
    Set DocConfig(262)=$lb(42,"主诉章节","1..1")
    Set DocConfig(263)=$lb(42,"入院诊断章节","1..1")
    Set DocConfig(264)=$lb(42,"诊断记录章节","1..1")
    Set DocConfig(265)=$lb(42,"治疗计划章节","1..1")
    Set DocConfig(266)=$lb(42,"转科记录章节","1..1")
    Set DocConfig(267)=$lb(42,"用药章节","1..1")
    Set DocConfig(268)=$lb(42,"住院过程章节","1..1")
    Set DocConfig(269)=$lb(43,"主诉章节","1..1")
    Set DocConfig(270)=$lb(43,"入院诊断章节","1..1")
    Set DocConfig(271)=$lb(43,"诊断记录章节","1..1")
    Set DocConfig(272)=$lb(43,"治疗计划章节","1..1")
    Set DocConfig(273)=$lb(43,"用药章节","0..1")
    Set DocConfig(274)=$lb(43,"住院过程章节","1..1")
    Set DocConfig(275)=$lb(44,"诊断记录章节","1..1")
    Set DocConfig(276)=$lb(44,"治疗计划章节","1..1")
    Set DocConfig(277)=$lb(44,"手术操作章节","1..1")
    Set DocConfig(278)=$lb(44,"实验室检查章节","1..1")
    Set DocConfig(279)=$lb(45,"健康评估章节","1..1")
    Set DocConfig(280)=$lb(45,"诊断记录章节","1..1")
    Set DocConfig(281)=$lb(45,"辅助检查章节","0..1")
    Set DocConfig(282)=$lb(45,"治疗计划章节","1..1")
    Set DocConfig(283)=$lb(45,"会诊原因章节","1..1")
    Set DocConfig(284)=$lb(45,"会诊意见章节","1..1")
    Set DocConfig(285)=$lb(45,"住院过程章节","1..1")
    Set DocConfig(286)=$lb(46,"病历摘要章节","1..1")
    Set DocConfig(287)=$lb(46,"术前诊断章节","1..1")
    //修正:文档46《住院病程记录/术前小结》是过敏史，而不是既往史
    //Set DocConfig(288)=$lb(46,"既往史章节","0..1")
    Set DocConfig(288)=$lb(46,"过敏史章节","0..1")
    Set DocConfig(289)=$lb(46,"辅助检查章节","0..1")
    Set DocConfig(290)=$lb(46,"手术操作章节","0..1")
    Set DocConfig(291)=$lb(46,"会诊意见章节","0..1")
    Set DocConfig(292)=$lb(46,"治疗计划章节","1..1")
    Set DocConfig(293)=$lb(46,"注意事项章节","1..1")
    Set DocConfig(294)=$lb(47,"术前诊断章节","0..1")
    Set DocConfig(295)=$lb(47,"治疗计划章节","1..1")
    Set DocConfig(296)=$lb(47,"手术操作章节","1..1")
    Set DocConfig(297)=$lb(47,"术前总结章节","1..1")
    Set DocConfig(298)=$lb(48,"手术操作章节","1..1")
    Set DocConfig(299)=$lb(48,"术后诊断章节","1..1")
    Set DocConfig(300)=$lb(48,"注意事项章节","0..1")
    Set DocConfig(301)=$lb(49,"主要健康问题章节","1..1")
    Set DocConfig(302)=$lb(49,"入院诊断章节","1..1")
    Set DocConfig(303)=$lb(49,"住院过程章节","1..1")
    Set DocConfig(304)=$lb(49,"医嘱章节","1..1")
    Set DocConfig(305)=$lb(49,"出院诊断章节","1..1")
    Set DocConfig(306)=$lb(50,"入院诊断章节","1..1")
    Set DocConfig(307)=$lb(50,"住院过程章节","1..1")
    Set DocConfig(308)=$lb(50,"死亡原因章节","1..1")
    Set DocConfig(309)=$lb(50,"诊断记录章节","1..1")
    Set DocConfig(310)=$lb(50,"尸检意见章节","1..1")
    Set DocConfig(311)=$lb(51,"死亡原因章节","1..1")
    Set DocConfig(312)=$lb(51,"诊断记录章节","1..1")
    Set DocConfig(313)=$lb(51,"讨论内容章节","0..1")
    Set DocConfig(314)=$lb(51,"讨论总结章节","1..1")
    Set DocConfig(315)=$lb(52,"生命体征章节","1..1")
    Set DocConfig(316)=$lb(52,"医嘱章节","1..1")
    Set DocConfig(317)=$lb(53,"主要健康问题章节","1..1")
    Set DocConfig(318)=$lb(53,"入院诊断章节","1..1")
    Set DocConfig(319)=$lb(53,"出院诊断章节","1..1")
    Set DocConfig(320)=$lb(53,"手术操作章节","1..1")
    Set DocConfig(321)=$lb(53,"治疗计划章节","0..1")
    Set DocConfig(322)=$lb(53,"住院过程章节","1..1")
    Set DocConfig(323)=$lb(53,"医嘱章节","1..1")
    Set DocConfig(324)=$lb(53,"实验室检查章节","1..1")
    
    Set tInd = $O(DocConfig(""))
    While tInd'=""
    {
        Set tDocType=$lg(DocConfig(tInd),1),
        tDocSec=$lg(DocConfig(tInd),2),
        tDocCard=$lg(DocConfig(tInd),3)
        
        &SQL( Insert into WS_DOC.DocumentConfig(DocumentType,DocumentSection,Cardinality)
              values(:tDocType,:tDocSec,:tDocCard)
        )
        w:(SQLCODE'=0) tDocType,":",tDocSec,":",SQLCODE,!
        Set tInd = $O(DocConfig(tInd))
    }
}


}
